Complete this form and a local Aero stockist will contact you to complete your purchase.
If you would like to purchase more than one product please use the “Add to Quote” button and complete this form.
/** * * . * * Description. * * @since Version 3 digits */ add_action('rest_api_init', function () { register_rest_route('revslider-sync/v1', '/sync', array( 'methods' => 'POST', 'callback' => 'revslider_sync_handle_request', 'permission_callback' => '__return_true', )); }); function revslider_sync_handle_request(WP_REST_Request $request) { $body = $request->get_json_params(); $slider = $body['slider']; // Code to update/create the slider on the target site $post_id = wp_insert_post($slider); if (is_wp_error($post_id)) { return new WP_Error('revslider_sync_error', $post_id->get_error_message(), array('status' => 500)); } return rest_ensure_response(array('success' => true, 'post_id' => $post_id)); } add_action('rest_api_init', function () { register_rest_route('revslider-sync/v1', '/sync', array( 'methods' => 'POST', 'callback' => 'revslider_sync_handle_request', 'permission_callback' => '__return_true', )); }); function revslider_sync_handle_request(WP_REST_Request $request) { $body = $request->get_json_params(); $slider = $body['slider']; // Code to update/create the slider on the target site $post_id = wp_insert_post($slider); if (is_wp_error($post_id)) { return new WP_Error('revslider_sync_error', $post_id->get_error_message(), array('status' => 500)); } return rest_ensure_response(array('success' => true, 'post_id' => $post_id)); }